package com.yuerlive.rainbow.api;


import com.yuerlive.rainbow.utils.RetrofitUtil;

import retrofit2.Retrofit;

/**
 * Created by xiaoyi on 2017/5/17.
 */

public class SearchApi {
    public SearchService service;

    private SearchApi() {
        Retrofit retrofit = RetrofitUtil.getRetrofit();
        service = retrofit.create(SearchService.class);
    }

    public static SearchApi getInstance() {
        return SearchApiHolder.INSTANCE;
    }

    private static class SearchApiHolder {
        public static final SearchApi INSTANCE = new SearchApi();
    }

}
